package cn.healthlink.no_5;
import java.beans.PropertyEditorSupport;
import java.time.LocalDate;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/2/20 11:17
 */
public class DatePropertyEditor extends PropertyEditorSupport {

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		LocalDate date = LocalDate.parse(text);
		super.setValue(date);
	}

}
